home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / watcwin.mak < prev    next >
Text File  |  1993-05-28  |  6KB  |  183 lines

  1. #    Copyright (C) 1991, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, MS-DOS/Watcom C386 platform.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ###### This section is the only part of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the default directory/ies for the runtime
  28. # initialization and font files.  Separate multiple directories with \;.
  29. # Use / to indicate directories, not a single \.
  30.  
  31. GS_LIB_DEFAULT=c:/gs\;c:/gs/fonts
  32.  
  33. # Define the name of the Ghostscript initialization file.
  34. # (There is no reason to change this.)
  35.  
  36. GS_INIT=gs_init.ps
  37.  
  38. # Choose generic configuration options.
  39.  
  40. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  41. # Code runs substantially slower even if no debugging switches are set,
  42. # and also takes about another 25K of memory.
  43.  
  44. DEBUG=0
  45.  
  46. # Setting TDEBUG=1 includes symbol table information for the Watcom debugger,
  47. # and also enables stack checking.  Code is substantially slower and larger.
  48.  
  49. TDEBUG=0
  50.  
  51. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  52. # so they are visible to the debugger and profiler.
  53. # No execution time or space penalty, just larger .OBJ and .EXE files.
  54.  
  55. NOPRIVATE=0
  56.  
  57. # Define the name of the executable file.
  58.  
  59. GS=gswin386
  60.  
  61. # ------ Platform-specific options ------ #
  62.  
  63. # Define the drive, directory, and compiler name for the Watcom C files.
  64. # $(%WATCOM) means use the WATCOM environment variable, which is also used
  65. #   by the Watcom C programs themselves.
  66. # COMP is the full compiler path name (normally $(%WATCOM)\bin\wcc386p).
  67. # LINK is the full linker path name (normally $(%WATCOM)\bin\wlinkp).
  68. # CLINK is the compile-and-link utility full path name (normally
  69. #   $(%WATCOM)\binb\wcl386).
  70. # STUB is the full path name for the DOS extender stub (normally
  71. #   $(%WATCOM)\binb\wstub.exe).
  72. # INCDIR contains the include files (normally $(%WATCOM)\h).
  73. # LIBDIR contains the library files (normally $(%WATCOM)\lib386).
  74. # Note that INCDIR and LIBDIR are always followed by a \,
  75. #   so if you want to use the current directory, use an explicit '.'.
  76.  
  77. COMP=$(%WATCOM)\bin\wcc386p
  78. LINK=$(%WATCOM)\bin\wlinkp
  79. CLINK=$(%WATCOM)\binb\wcl386
  80. STUB=$(%WATCOM)\binb\wstub.exe
  81. INCDIR=$(%WATCOM)\h
  82. LIBDIR=$(%WATCOM)\lib386
  83. WBIND=$(%WATCOM)\binb\wbind.exe
  84. WRC=$(%WATCOM)\binb\rc.exe
  85.  
  86. # Choose platform-specific options.
  87.  
  88. # Define the processor (CPU) type.  Options are 386 or 486.
  89. # Currently the only difference is that 486 always uses in-line
  90. # floating point.
  91.  
  92. CPU_TYPE=386
  93.  
  94. # Define the math coprocessor (FPU) type.  Options are 0, 287, or 387.
  95. # If the CPU type is 486, the FPU type is irrelevant, since the 80486
  96. # CPU includes the equivalent of an 80387 on-chip.
  97. # A non-zero option means that the executable will only run if a FPU
  98. # of that type (or higher) is available: this is NOT currently checked
  99. # at runtime.
  100. #   Code is significantly faster.
  101.  
  102. FPU_TYPE=0
  103.  
  104. # ---------------------------- End of options ---------------------------- #
  105.  
  106. # Define the platform name.
  107.  
  108. PLATFORM=watcwin_
  109.  
  110. # Define the name of the makefile -- used in dependencies.
  111.  
  112. MAKEFILE=watcwin.mak
  113.  
  114. # Define additional platform compilation flags.
  115.  
  116. PLATOPT=-zW
  117.  
  118. !include wccommon.mak
  119.  
  120. # ------ Devices and features ------ #
  121.  
  122. # Choose the language feature(s) to include.  See gs.mak for details.
  123. # Since we have a large address space, we include the optional features.
  124.  
  125. FEATURE_DEVS=filter.dev dps.dev level2.dev
  126.  
  127. # Choose the device(s) to include.  See devs.mak for details.
  128.  
  129. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev
  130. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev paintjet.dev pjetxl.dev
  131. DEVICE_DEVS5=epson.dev eps9high.dev ibmpro.dev bj10e.dev
  132. DEVICE_DEVS8=gifmono.dev gif8.dev pcxmono.dev pcx16.dev pcx256.dev bit.dev
  133. !include gs.mak
  134. !include devs.mak
  135.  
  136. # -------------------------------- Library -------------------------------- #
  137.  
  138. # The Watcom C platform
  139.  
  140. watc__=gp_iwatc.$(OBJ) gp_nofb.$(OBJ) gp_msdos.$(OBJ)
  141. watcwin_.dev: $(watc__)
  142.     $(SHP)gssetmod watcwin_ $(watc__)
  143.  
  144. gp_iwatc.$(OBJ): gp_iwatc.c $(string__h) $(gx_h) $(gp_h)
  145.  
  146. gp_msdos.$(OBJ): gp_msdos.c $(dos__h) $(string__h) $(gx_h) $(gp_h)
  147.  
  148. # ----------------------------- Main program ------------------------------ #
  149.  
  150. BEGINFILES=*.err gs*.ico gs*.res
  151. # The Watcom compiler doesn't recognize wildcards;
  152. # we don't want any compilation to fail.
  153. CCBEGIN=for %%f in (gs*.c gx*.c z*.c) do $(CCC) %%f
  154.  
  155. LIBDOS=$(LIBGS) gp_iwatc.$(OBJ) gp_nofb.$(OBJ) gp_msdos.$(OBJ) objw.tr
  156.  
  157. # Interpreter main program
  158.  
  159. ICONS=gsgraph.ico gstext.ico
  160.  
  161. GS_ALL=gs.$(OBJ) $(INT) $(INTASM) gsmain.$(OBJ)\
  162.   $(LIBDOS) objw.tr objwl.tr $(GS).res $(ICONS)
  163.  
  164. # Make the icons from their text form.
  165.  
  166. gsgraph.ico: gsgraph.icx echogs$(XE)
  167.     echogs -wb gsgraph.ico -n -X -r gsgraph.icx
  168.  
  169. gstext.ico: gstext.icx echogs$(XE)
  170.     echogs -wb gstext.ico -n -X -r gstext.icx
  171.  
  172. $(GS).res: $(GS).rc $(ICONS)
  173.     $(WRC) -i$(INCDIR) -r $(GS)
  174.  
  175. objwl.tr: $(MAKEFILE)
  176.     echo SYSTEM WIN386 >objwl.tr
  177.     echo OPTION STACK=8k >>objwl.tr
  178.  
  179. $(GS)$(XE): $(GS_ALL) $(ALL_DEVS) objwl.tr
  180.     $(LINK) $(LCT) NAME $(GS) OPTION MAP=$(GS) @gsw.tr @objw.tr @objwl.tr
  181.     $(WBIND) $(GS) -R $(GS).res
  182.     rm $(GS).rex $(GS).res
  183.